{extend name="member/common/member_layout" /}

{block name="content"}

<div id="member_center_box" class="ncm-index-container">
    <!--<div class="user-account">
        <dl class="account01">
            <a href="<?php echo url('/member/Predeposit/pd_log_list');?>" title="查看我的余额">
                <dt>账户余额</dt>
                <dd class="icon"></dd>
                <dd class="value">￥<em><?php echo $member_info['available_predeposit'];?></em></dd>
            </a>
        </dl>
        <dl class="account02">
            <a href="<?php echo url('/member/Predeposit/rcb_log_list');?>">
                <dt>充值卡余额</dt>
                <dd class="icon"></dd>
                <dd class="value">￥<em><?php echo $member_info['available_rc_balance'];?></em></dd>
            </a>
        </dl>
        <dl class="account03">
            <a href="<?php echo url('member_voucher');?>" title="查看我的代金券">
                <dt>店铺代金券</dt>
                <dd class="icon"></dd>
                <dd class="value"><em><?php echo $member_info['voucher_count']?$member_info['voucher_count']:0;?></em>张</dd>
            </a>
        </dl>
        <dl class="account04">
            <a href="<?php echo url('member_redpacket');?>">
                <dt>平台红包</dt>
                <dd class="icon"></dd>
                <dd class="value"><em><?php echo $member_info['redpacket_count']?$member_info['redpacket_count']:0;?></em>个</dd>
            </a>
        </dl>
        <dl class="account05">
            <a href="<?php echo url('member_points');?>" title="查看我的积分">
                <dt>可用积分</dt>
                <dd class="icon"></dd>
                <dd class="value"><em><?php echo $member_info['member_points'];?></em>分</dd>
            </a>
        </dl>
    </div>-->
    <div class="user-consume">
        <div class="title"><h3>我的消费</h3> <a href="<?php echo url('/member/Consume/index');?>">查看所有记录</a></div>
        <table class="ncm-default-table">
            <thead>
            <tr>
                <th class="w10"></th>
                <th class="w150 tl">记录时间</th>
                <th class="w150 tl">金额</th>
                <th class="tl">备注</th>
            </tr>
            </thead>
            <tbody>
            <?php  if (!empty($consume_list)) { ?>
            <?php foreach($consume_list as $val) { ?>
            <tr class="bd-line">
                <td></td>
                <td class="w150 tl"><?php echo date('Y-m-d H:i:s', $val['consume_time']);?></td>
                <td class="w150 tl">&yen; <?php echo ncPriceFormat($val['consume_amount'])?></td>
                <td class="tl"><?php echo $val['consume_remark'];?></td>
            </tr>
            <?php } ?>
            <?php } else {?>
            <tr>
                <td colspan="20" class="norecord"><div class="warning-option"><span>最近您没有任何消费记录</span></div></td>
            </tr>
            <?php } ?>
            </tbody>

        </table></div>
</div>

{/block}
